package hu.imind.phonecalc.client.dto;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@SuppressWarnings("serial")
public class LoginInfo implements Serializable {
    private boolean loggedIn = false;
    private boolean contactAuthorized = false;
    private String loginUrl;
    private String authSubLoginUrl;
    private String logoutUrl;
    private String emailAddress;
    private String nickname;
    private String token;
    private String workNumbers;
    private String privNumbers;
    private List<String> bills;

    /*
     * The String List coming from the bigtable cannot be serialized and
     * sent to the client, so it is copied to a new String List.
     */
    public void setBillsBigTable(List<String> x) {
        bills = new ArrayList<String>();
        if (x == null) {
            return;
        }
        for (String s : x) {
            bills.add(s);
        }
    }
    public List<String> getBills() {
        return bills;
    }
    public void setBills(List<String> bills) {
        this.bills = bills;
    }
    public boolean isContactAuthorized() {
        return contactAuthorized;
    }
    public void setContactAuthorized(boolean contactAuthorized) {
        this.contactAuthorized = contactAuthorized;
    }
    public String getWorkNumbers() {
        return workNumbers;
    }
    public void setWorkNumbers(String workNumbers) {
        this.workNumbers = workNumbers;
    }
    public String getPrivNumbers() {
        return privNumbers;
    }
    public void setPrivNumbers(String privNumbers) {
        this.privNumbers = privNumbers;
    }
    public String getToken() {
        return token;
    }
    public void setToken(String token) {
        this.token = token;
    }
    public boolean isLoggedIn() {
        return loggedIn;
    }
    public void setLoggedIn(boolean loggedIn) {
        this.loggedIn = loggedIn;
    }
    public String getLoginUrl() {
        return loginUrl;
    }
    public void setLoginUrl(String loginUrl) {
        this.loginUrl = loginUrl;
    }
    public String getLogoutUrl() {
        return logoutUrl;
    }
    public void setLogoutUrl(String logoutUrl) {
        this.logoutUrl = logoutUrl;
    }
    public String getEmailAddress() {
        return emailAddress;
    }
    public void setEmailAddress(String emailAddress) {
        this.emailAddress = emailAddress;
    }
    public String getNickname() {
        return nickname;
    }
    public void setNickname(String nickname) {
        this.nickname = nickname;
    }
    public String getAuthSubLoginUrl() {
        return authSubLoginUrl;
    }
    public void setAuthSubLoginUrl(String authSubLoginUrl) {
        this.authSubLoginUrl = authSubLoginUrl;
    }
}
